package wigiri.team.info.copy;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.ui.navigator.CommonActionProvider;
import org.eclipse.ui.navigator.ICommonActionExtensionSite;

public class CopyActionProvider extends CommonActionProvider {

	private Action copyAction;

	public CopyActionProvider() {
		// Nothing to do
	}
	
	public void init(ICommonActionExtensionSite aSite) {
		super.init(aSite);
		copyAction = new CopyAction(this, aSite.getStructuredViewer(), "Copy Pat&h");
	}
	
	public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		menu.add(copyAction);
	}
}
